package com.sdry.transit.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.sdry.transit.entity.TransitLoadingDetail;
import com.sdry.transit.service.TransitLoadingDetailService;
import com.sdry.transit.mapper.TransitLoadingDetailMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 *
 *@ClassName: TransitLoadingDetailService
 *@Description: 装车信息
 *@Author tdd
 *@Date 2020-03-11 12:14:39
 *@version 1.0
*/
@Service
@Transactional(rollbackFor = Exception.class)
public class TransitLoadingDetailServiceImpl implements TransitLoadingDetailService {
	@Resource TransitLoadingDetailMapper transitLoadingDetailMapper;
	//声明一个Logger
	private final static Logger logger = LoggerFactory.getLogger(TransitLoadingDetailServiceImpl.class);
	/** 
	 * 根据主键id查询实体
	 * @param id 主键id
	 * @return 实体
	*/
	public TransitLoadingDetail queryById(Long id) {
		return transitLoadingDetailMapper.queryById(id);
	}
	/** 
	 * 条件查询所有
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<TransitLoadingDetail> queryAllByMution(TransitLoadingDetail param) {
		return transitLoadingDetailMapper.queryAllByMution(param);
	}
	/** 
	 * 条件分页查询
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<TransitLoadingDetail> findPageByMution(TransitLoadingDetail param) {
		return transitLoadingDetailMapper.findPageByMution(param);
	}
	/** 
	 * 条件查询记录数
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public Integer selectCountByMution(TransitLoadingDetail param) {
		return transitLoadingDetailMapper.selectCountByMution(param);
	}
	/** 
	 * 插入返回id
	 * @param param 实体条件
	 * @return 主键id
	*/
	public Long insert(TransitLoadingDetail param) {
		return transitLoadingDetailMapper.insert(param);
	}
	/** 
	 * 根据主键更新 返回影响行数
	 * @param param 实体条件
	 * @return 影响行数
	*/
	public Integer update(TransitLoadingDetail param) {
		return transitLoadingDetailMapper.update(param);
	}
	/** 
	 * 根据主键拼接的字符串删除返回影响行数
	 * @param ids 主键拼接的字符串
	 * @return 影响行数
	*/
	public Integer delete(String ids) {
		return transitLoadingDetailMapper.delete(ids);
	}
}
